package b02static;

import java.util.Scanner;

public class StudentTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Student student = new Student();
        System.out.println("请输入姓名");
        String nam=sc.next();
        System.out.println("请输入性别");
        String Sex=sc.next();
        System.out.println("请输入年龄");
        String age=sc.next();
        student.setName(nam);
        student.setSex(Sex);
        student.setAge(age);
        System.out.println("请输入学号");
        int no=sc.nextInt();
        student.setNo(no);
        System.out.println("请输入英语成绩");
        double scoreEn=sc.nextDouble();
        student.setScoreEn(scoreEn);
        System.out.println("请输入数学成绩");
        double scoreMath=sc.nextDouble();
        student.setScoreMath(scoreMath);
        System.out.println("请输入语文成绩");
        double scoreCh=sc.nextDouble();
        student.setScoreCh(scoreCh);
        double[] arr=new double[]{scoreEn,scoreMath,scoreCh};
        student.max(arr);
        student.min(arr);
        student.toString();
    }
}
